import * as types from '@/store/mutation-types.js'

export default {
  namespaced: true,
  // state 负责存储数据
  state: {
    breadcrumbList: []
  },
  // getters 负责处理state中数据，返回相应的格式
  getters: {},
  // actions 负责取异步数据,提交mutation（异步）
  actions: {},
  // mutations 负责提交数据（同步）
  mutations: {
    [types.BREADCRUMB] (state, val) {
      state.breadcrumbList = val
    }
  }
}
